@echo off
set MD=%~1
set TPL=%~2
set OUT=%~3
if "%MD%"=="" goto usage
if "%TPL%"=="" goto usage
if "%OUT%"=="" goto usage
python -m src.pptgen.cli build --md "%MD%" --tpl "%TPL%" --out "%OUT%"
exit /b %ERRORLEVEL%
:usage
echo usage: build.bat <md> <tpl> <out>
exit /b 1